home *** CD-ROM | disk | FTP | other *** search
- <!--//--><script language="javascript">
- /*
- This file creates an object based on the querystring (location.search) information
-
- File Dependencies:
- None
-
- Required Initialization Method:
- None
- */
-
- function REQUESTOBJECT()
- {
- var request = new Object();
- var nameVal = "";
- var inString = location.search;
- var separator = ",";
-
- if (inString.charAt(0) == "?")
- {
- inString = inString.substring(1, inString.length);
- keypairs = inString.split("&");
-
- for (var i=0; i < keypairs.length; i++)
- {
- nameVal = keypairs[i].split("=");
-
- for (a in nameVal)
- {
- nameVal[a] = unescape(nameVal[a]);
- }
-
- if (request[nameVal[0]]) request[nameVal[0]] += separator + nameVal[1];
- else request[nameVal[0]] = nameVal[1];
- }
- }
- return request;
- }
- //--></script>